From: Florian Müllner Date: Mon, 27 Feb 2017 10:27:52 +0000 (+0100) Subject: telepathyClient: Update notification time from message X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~508 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c6f22826cf4b6f1825b2efcef232d98349f208b3;p=gnome-shell.git telepathyClient: Update notification time from message As the telepathy integration picks up existing channels on startup, ChatNotifications are another case where the real time the message was received may be before the time it is picked up by the shell. While this is less of an annoyance than restored GNotifications, as it generally only affects restarts from the run dialog, it's an easy fix now ... https://bugzilla.gnome.org/show_bug.cgi?id=775799 --- diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js index 927ca456e..f1fe09f95 100644 --- a/js/ui/components/telepathyClient.js +++ b/js/ui/components/telepathyClient.js @@ -670,6 +670,8 @@ const ChatNotification = new Lang.Class({ styles: styles, timestamp: message.timestamp, noTimestamp: noTimestamp }); + this.update(this.title, this.bannerBodyText, + { datetime: GLib.DateTime.new_from_unix_local (message.timestamp) }); }, _filterMessages: function() {